<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<cpn></cpn>
		</div>
		<!-- <script type="text/template" id="cpn">
			<div>
				<h2>我是标题</h2>
				<p>我是内容</p>
			</div>
		</script> -->
		<template id="cpn">
			<div>
				<h2>{{title}}</h2>
				<p>{{message}}</p>
				<p>我是内容,呵呵</p>
				<p>我是内容,呵呵</p>
				<p v-for="item in friuts">{{item}}</p>
			</div>
		</template>
	</body>
	<script type="text/javascript">
		Vue.component('cpn',{
			template: '#cpn',
			data(){
				return {
					title:'我是标题1',
					message: '我师傅但是',
					friuts:['苹果', '葡萄', '橘子']
				}
			}
		})
		const app = new Vue({
			el:'#app',
			data:{
				message:'你好',
			}
		})
	</script>
</html>
